package com.dnzx.client.impl;

import java.util.List;

import org.dnzx.framework.page.PageResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dnzx.client.IUserClient;
import com.dnzx.model.system.UserBO;
import com.dnzx.service.IUserService;

/**
 * <p>cms系统后台用户client实现类</p>
 *
 * @author Steven
 * @version V1.0
 * @Package com.rcss.client.service.impl
 * @date 2017/9/15 10:50
 */
@Service
public class UserClientImpl implements IUserClient {

	private static Logger logger = LoggerFactory.getLogger(UserClientImpl.class);
	
	@Autowired
	private IUserService userService;

	
	@Override
    public void save(UserBO userBO) throws Exception {
        this.userService.save(userBO);
    }
    
    @Override
    public void delete(Long id) throws Exception {
        this.userService.delete(id);
    }

    @Override
    public void update(UserBO userBO) throws Exception {
        this.userService.update(userBO);
    }
    
    @Override
    public void updatePwd(UserBO userBO, String langCode) throws Exception {
        this.userService.updatePwd(userBO, langCode);
    }
    
    @Override
    public void forgetPwd(UserBO userBO) throws Exception {
        this.userService.forgetPwd(userBO);
    }
    
    @Override
    public UserBO get(Long id) {
        return this.userService.get(id);
    }
    
    @Override
    public UserBO get(UserBO userBO) {
        return this.userService.get(userBO);
    }

	@Override
	public List<UserBO> queryList(UserBO userBO) {
		return this.userService.queryList(userBO);
	}
	
	@Override
	public PageResult<List<UserBO>> queryPage(UserBO userBO, PageResult<List<UserBO>> pageResult) {
		return this.userService.queryPage(userBO, pageResult);
	}

}
